/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enterprise.ent;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "deportes")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Deportes.findAll", query = "SELECT d FROM Deportes d"),
    @NamedQuery(name = "Deportes.findByIdDeporte", query = "SELECT d FROM Deportes d WHERE d.idDeporte = :idDeporte"),
    @NamedQuery(name = "Deportes.findByDepoDeporte", query = "SELECT d FROM Deportes d WHERE d.depoDeporte = :depoDeporte"),
    @NamedQuery(name = "Deportes.findByDepoDescripcion", query = "SELECT d FROM Deportes d WHERE d.depoDescripcion = :depoDescripcion")})
public class Deportes implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_deporte")
    private Integer idDeporte;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 30)
    @Column(name = "depo_deporte")
    private String depoDeporte;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 250)
    @Column(name = "depo_descripcion")
    private String depoDescripcion;

    public Deportes() {
    }

    public Deportes(Integer idDeporte) {
        this.idDeporte = idDeporte;
    }

    public Deportes(Integer idDeporte, String depoDeporte, String depoDescripcion) {
        this.idDeporte = idDeporte;
        this.depoDeporte = depoDeporte;
        this.depoDescripcion = depoDescripcion;
    }

    public Integer getIdDeporte() {
        return idDeporte;
    }

    public void setIdDeporte(Integer idDeporte) {
        this.idDeporte = idDeporte;
    }

    public String getDepoDeporte() {
        return depoDeporte;
    }

    public void setDepoDeporte(String depoDeporte) {
        this.depoDeporte = depoDeporte;
    }

    public String getDepoDescripcion() {
        return depoDescripcion;
    }

    public void setDepoDescripcion(String depoDescripcion) {
        this.depoDescripcion = depoDescripcion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idDeporte != null ? idDeporte.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Deportes)) {
            return false;
        }
        Deportes other = (Deportes) object;
        if ((this.idDeporte == null && other.idDeporte != null) || (this.idDeporte != null && !this.idDeporte.equals(other.idDeporte))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "enterprise.ent.Deportes[ idDeporte=" + idDeporte + " ]";
    }
    
}
